package com.we.flink.userlabelplatform.table;

public class TableOrderInfo {
    public static final String KFKTABLE = "fdm.hhl01_order_info";
    public static final String QUERYSQL =
            "select uid, order_type, "
                    + "submit_time, "
                    + "if(pay_time is null, 0, pay_time) as pay_time, "
                    + "updated_at from "
                    + KFKTABLE
                    + " where deleted_at is null "
                    + "and submit_time is not null "
                    + "and updated_at is not null "
                    + "and order_type is not null";

    public long uid;
    public int order_type;
    public int submit_time;
    public int pay_time;
    public int updated_at;

    public TableOrderInfo() {}

    public TableOrderInfo(long uid, int order_type, int submit_time, int pay_time, int updated_at) {
        this.uid = uid;
        this.order_type = order_type;
        this.submit_time = submit_time;
        this.pay_time = pay_time;
        this.updated_at = updated_at;
    }

    public long getUid() {
        return uid;
    }

    public int getOrder_type() {
        return order_type;
    }

    public int getSubmit_time() {
        return submit_time;
    }

    public int getUpdated_at() {
        return updated_at;
    }

    public int getPay_time() {
        return pay_time;
    }
}
